<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
	<title>案件查看</title>
	<link type="text/css" rel="stylesheet" href="/mobile/Public/mobile/css/style.css" />
	<link href="/mobile/Public/mobile/css/mui.min.css" rel="stylesheet"/>
    <link href="/mobile/Public/mobile/css/sty.css" rel="stylesheet"/>
    <script type="text/javascript" src="/mobile/Public/mobile/js/mui.min.js"></script>
    <script src="/mobile/Public/admin/js/jquery-1.12.3.min.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
    	.xperMess{font-size: 15px;}
		.xperMess .xmessLast {
		    margin-right: 0.2vh;
		    color: #000;
		}
	</style>
</head>
<body style="background-color: #fff;">
	<header class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">案件查看</h1>
    </header>
    <div class="mui-content">
        <div class="xChoseTime">
			<select class="xSeleTime" name="ktime" id="ttt">
				<?php if(is_array($notes)): foreach($notes as $key=>$notes): ?><option value="<?php echo ($notes['id']); ?>"><?php echo ($notes['table_name']); ?></option><?php endforeach; endif; ?>
			</select>
		</div>
		<!-- 年份改变js 开始 -->
		<script type="text/javascript">
		    function year(){
		    	var notes_id = $('#ttt').val();
		    	$.ajax({
		    		url: "<?php echo U('case/anjian');?>",
		    		type: 'post',
		    		data: {id:notes_id},
		    		success:function(mes){
		    			// alert(mes);
		    			$('.xperMess').remove();
		    			$('.card_div').remove();
		    			$('.xtableCon').remove();
		    			$('#aaa').html(mes);
		    		}
		    	});
		    }
		    $('#ttt').change(function(){
		    	year();
		    });
		</script>
		<!-- 年份改变js 结束 -->
		<p class="xperMess">
	        <span class="xmessFirst">姓名：</span><span class="xmessLast"><?php echo idtoname('worker_id','worker','worker_name',$worker_id);?></span>
	        <span class="xmessFirst">总案件：</span><span class="xmessLast"><?php echo ($number1); ?>件</span>
	        <span class="xmessFirst">已结案：</span><span class="xmessLast"><?php echo ($number2); ?>件</span>
	        <span class="xmessFirst">未结案：</span><span class="xmessLast"><?php echo ($number3); ?>件</span>
        </p>
        <div class="card_div">
			<span style="width: 20%;padding-left: 4%;text-align: left;">编号</span>
			<span style="width: 50%;text-align: center;">案件案由</span>
			<span style="width: 20%;text-align: center;">案件状态</span>
		</div>
		<div class="xtableCon">
			<?php if(is_array($list)): foreach($list as $k=>$vo): ?><div class="line">
					<span class="xtableScore"><?php echo ($k+1); ?></span>
					<span class="xtableName"><?php echo ($vo['case_name2']); ?></span>
					<?php if($vo['stime'] == '' ): ?><span class="xtableScore">未结案</span>
					<?php else: ?> 
						<span class="xtableScore">已结案</span><?php endif; ?>
				</div><?php endforeach; endif; ?>
		</div>
		<div id="aaa"></div>
	</div>
</body>
</html>